package com.shizhan.shizhan2;

import com.animal.entity.Pet;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class InkTest {
    @Test
    public void testInk() {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:shizhanContext.xml");
        Entity entity = (Entity) context.getBean("ink1");
        InkService inkService = (InkService) context.getBean("inkService");
        inkService.serve(entity);
    }
}
